package com.anne.fish.webapp.action.usercenter;

import java.util.ArrayList;
import java.util.List;

import com.anne.fish.model.Credit;
import com.anne.fish.webapp.action.UserCenterBaseAction;

/**
 * Action for facilitating User Management feature.
 */
public class MyCreditAction extends UserCenterBaseAction {
	private static final long serialVersionUID = 6776558938712115191L;
	
	List<Credit> creditList = null;
	
	public String execute() {	
		return "frame";
	}
	
	public String readCreditList() {	
		
		creditList = new ArrayList<Credit>();
		
		Credit credit = new Credit();
		credit.setProject("注册为58同城用户");
		credit.setScore(10L);
		credit.setCreateTime(System.currentTimeMillis());
		creditList.add(credit);
		
		
		return SUCCESS;
	}
	
	public List<Credit> getCreditList() {
		return creditList;
	}

	public void setCreditList(List<Credit> creditList) {
		this.creditList = creditList;
	}	
	
}
